package com.lxm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lxm.dto.AddressDTO;
import com.lxm.dto.Result;
import com.lxm.entity.Address;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 地址表 服务类
 * </p>
 *
 * @author ${author}
 * @since 2024-10-02
 */
public interface AddressService extends IService<Address> {

    Result add(AddressDTO address);

    @Transactional
    Result updateAddress(AddressDTO address);

    Result listByUserId();

    @Transactional
    Result deleteAddress(Long id);
}
